/*
 * XML Type:  OtherInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.OtherInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML OtherInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class OtherInfoImpl extends net.ofx.types.x2003.x04.impl.AbstractSecurityInfoImpl implements net.ofx.types.x2003.x04.OtherInfo
{
    
    public OtherInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName TYPEDESC$0 = 
        new javax.xml.namespace.QName("", "TYPEDESC");
    private static final javax.xml.namespace.QName ASSETCLASS$2 = 
        new javax.xml.namespace.QName("", "ASSETCLASS");
    private static final javax.xml.namespace.QName FIASSETCLASS$4 = 
        new javax.xml.namespace.QName("", "FIASSETCLASS");
    
    
    /**
     * Gets the "TYPEDESC" element
     */
    public java.lang.String getTYPEDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPEDESC$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TYPEDESC" element
     */
    public net.ofx.types.x2003.x04.TypeDescriptionType xgetTYPEDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TypeDescriptionType target = null;
            target = (net.ofx.types.x2003.x04.TypeDescriptionType)get_store().find_element_user(TYPEDESC$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "TYPEDESC" element
     */
    public boolean isSetTYPEDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TYPEDESC$0) != 0;
        }
    }
    
    /**
     * Sets the "TYPEDESC" element
     */
    public void setTYPEDESC(java.lang.String typedesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TYPEDESC$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TYPEDESC$0);
            }
            target.setStringValue(typedesc);
        }
    }
    
    /**
     * Sets (as xml) the "TYPEDESC" element
     */
    public void xsetTYPEDESC(net.ofx.types.x2003.x04.TypeDescriptionType typedesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.TypeDescriptionType target = null;
            target = (net.ofx.types.x2003.x04.TypeDescriptionType)get_store().find_element_user(TYPEDESC$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.TypeDescriptionType)get_store().add_element_user(TYPEDESC$0);
            }
            target.set(typedesc);
        }
    }
    
    /**
     * Unsets the "TYPEDESC" element
     */
    public void unsetTYPEDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TYPEDESC$0, 0);
        }
    }
    
    /**
     * Gets the "ASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.AssetClassEnum.Enum getASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSETCLASS$2, 0);
            if (target == null)
            {
                return null;
            }
            return (net.ofx.types.x2003.x04.AssetClassEnum.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "ASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.AssetClassEnum xgetASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AssetClassEnum target = null;
            target = (net.ofx.types.x2003.x04.AssetClassEnum)get_store().find_element_user(ASSETCLASS$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "ASSETCLASS" element
     */
    public boolean isSetASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ASSETCLASS$2) != 0;
        }
    }
    
    /**
     * Sets the "ASSETCLASS" element
     */
    public void setASSETCLASS(net.ofx.types.x2003.x04.AssetClassEnum.Enum assetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ASSETCLASS$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ASSETCLASS$2);
            }
            target.setEnumValue(assetclass);
        }
    }
    
    /**
     * Sets (as xml) the "ASSETCLASS" element
     */
    public void xsetASSETCLASS(net.ofx.types.x2003.x04.AssetClassEnum assetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AssetClassEnum target = null;
            target = (net.ofx.types.x2003.x04.AssetClassEnum)get_store().find_element_user(ASSETCLASS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AssetClassEnum)get_store().add_element_user(ASSETCLASS$2);
            }
            target.set(assetclass);
        }
    }
    
    /**
     * Unsets the "ASSETCLASS" element
     */
    public void unsetASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ASSETCLASS$2, 0);
        }
    }
    
    /**
     * Gets the "FIASSETCLASS" element
     */
    public java.lang.String getFIASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIASSETCLASS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FIASSETCLASS" element
     */
    public net.ofx.types.x2003.x04.GenericNameType xgetFIASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(FIASSETCLASS$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "FIASSETCLASS" element
     */
    public boolean isSetFIASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(FIASSETCLASS$4) != 0;
        }
    }
    
    /**
     * Sets the "FIASSETCLASS" element
     */
    public void setFIASSETCLASS(java.lang.String fiassetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIASSETCLASS$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FIASSETCLASS$4);
            }
            target.setStringValue(fiassetclass);
        }
    }
    
    /**
     * Sets (as xml) the "FIASSETCLASS" element
     */
    public void xsetFIASSETCLASS(net.ofx.types.x2003.x04.GenericNameType fiassetclass)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.GenericNameType target = null;
            target = (net.ofx.types.x2003.x04.GenericNameType)get_store().find_element_user(FIASSETCLASS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.GenericNameType)get_store().add_element_user(FIASSETCLASS$4);
            }
            target.set(fiassetclass);
        }
    }
    
    /**
     * Unsets the "FIASSETCLASS" element
     */
    public void unsetFIASSETCLASS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(FIASSETCLASS$4, 0);
        }
    }
}
